class Main extends egret.DisplayObjectContainer {
    static self;
    constructor() {
        super();
        Main.self = this
        RES.addEventListener(RES.ResourceEvent.CONFIG_COMPLETE, this.onConfigComplete, this);
        RES.loadConfig("resource/default.res.json", "resource/");
    }
    onConfigComplete() {
        RES.addEventListener(RES.ResourceEvent.GROUP_COMPLETE, this.onResourceLoadComplete, this);
        RES.loadGroup('preload');
    }

    onResourceLoadComplete() {

        // Platform
        Platform.$websocket()
        Platform.render()
    }
}



